package com.ronghui.cash.parambean;

import com.ronghui.cash.util.Validator;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

public class ModifyPasswordBean {
	
	 @NotNull(message="旧密码不能为空")
	 @Pattern(regexp= Validator.REGEX_PASSWORD,message="旧密码格式错误")
	private String oldPassword;
	
	 @NotNull(message="新密码不能为空")
	 @Pattern(regexp=Validator.REGEX_PASSWORD,message="新密码格式错误")
	private String newPassword;

	public String getOldPassword() {
		return oldPassword;
	}

	public void setOldPassword(String oldPassword) {
		this.oldPassword = oldPassword;
	}

	public String getNewPassword() {
		return newPassword;
	}

	public void setNewPassword(String newPassword) {
		this.newPassword = newPassword;
	}

}
